#include<stdio.h>
int main (void)
{
	int salary,i=1600;
	double tax;
	double x1 = 0.05;
	double x2 = 0.1;
	double x3 = 0.15;
	double x4 = 0.2;
	
	printf("Enter n:");
	scanf("%d",&salary);
	tax = salary - i;
	
	
	if (salary<=1600)
	{
		printf("tax  is 0");
	}
	else if ((salary>1600) && (salary<=2500))
	{
		printf("tax  is %.2f",x1*tax);
	}
	else if ((salary>2500) && (salary<=3500))
	{
		printf("tax  is %.2f",x2*tax);
	}
	else if ((salary>3500) && (salary<=4500))
	{
		printf("tax  is %.2f",x3*tax);
	}
	else
	{
		printf("tax  is %.2f",x4*tax);
	}
	
	return 0;
}
